package com.zack.designPattern.command;

public class Demo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Counter counter = new Counter(0);
		Command ca = new AddCommand(counter, 3);
		Command cb = new AddCommand(counter, 2);
		ca.excute();
		ca.excute();
		cb.excute();
		ca.undo();
		cb.undo();
		cb.undo();
		ca.undo();
		

	}

}
